<?php
/* @var $this InfoAdminController */
/* @var $model Info */
/* @var $form CActiveForm */
?>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2>
				<i class="icon-edit">
				</i>
				<?php FormHelper::getFormBoxHeader('thông tin'); ?>
			</h2>
			<div class="box-icon"><?php FormHelper::getBoxIcon(); ?></div>
		</div>
		<div class="box-content">
			<?php $form=$this->beginWidget('CActiveForm', array(
            	'id'=>'info-form',
            	// Please note: When you enable ajax validation, make sure the corresponding
            	// controller action is handling ajax validation correctly.
            	// There is a call to performAjaxValidation() commented in generated controller code.
            	// See class documentation of CActiveForm for details on this.
            	'enableAjaxValidation'=>false,
                'htmlOptions'=>array(
                    'class'=>'form-horizontal',
                ),
            )); ?>
				<fieldset>
					<div class="control-group">
						<?php echo $form->labelEx($model,'info_name',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
                            <?php echo $form->textField($model,'info_name',FormHelper::setClass('textField')); ?>
		                    <?php echo $form->error($model,'info_name'); ?>
						</div>
					</div>
					<div class="control-group">
                        <?php echo $form->labelEx($model,'info_value',FormHelper::setClass('labelEx')); ?>
						<div class="controls">
                            <?php echo $form->textArea($model,'info_value',FormHelper::setClass('textArea')); ?>
                            <?php echo $form->error($model,'info_value'); ?>
						</div>
					</div>
					<div class="form-actions">
						<?php echo CHtml::submitButton($model->isNewRecord ? 'Thêm mới' : 'Lưu thay đổi',FormHelper::setClass('submitButton')); ?>
					</div>
				</fieldset>
	       <?php $this->endWidget(); ?>
		</div>
	</div>
	<!--/span-->
</div>